package net.maku.project.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fhs.core.trans.anno.Trans;
import com.fhs.core.trans.constant.TransType;
import com.fhs.core.trans.vo.TransPojo;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import net.maku.framework.common.utils.DateUtils;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

/**
* 流程状态表
*
* @author 艾力 1106997025@qq.com
* @since 1.0.0 2024-07-09
*/
@Data
@Schema(description = "流程阶段各环节状态表")
public class ProcessStagesStatesVO implements TransPojo,Serializable {
	@Serial
	private static final long serialVersionUID = 1L;

	@Schema(description = "状态ID，主键，自增")
	private Integer id;

	@Schema(description = "项目ID")
	private Integer projectId;

	@Schema(description = "流程阶段ID")
	private Integer stageId;

	@Schema(description = "所属环节ID")
	@Trans(type = TransType.SIMPLE,targetClassName = "net.maku.project.entity.ProcessStepEntity",fields = "name",ref = "stepName")
	private Integer stepId;

	@Schema(description = "流程环节名称")
	private String stepName;

	@Schema(description = "当前状态")
	private String status;

	@Schema(description = "企业材料确认")
	private String matlConfirm;

	@Schema(description = "是否完成")
	private Integer completed;

	@Schema(description = "开始时间")
	@JsonFormat(pattern = DateUtils.DATE_TIME_PATTERN)
	private Date startTime;

	@Schema(description = "完成时间")
	@JsonFormat(pattern = DateUtils.DATE_TIME_PATTERN)
	private Date completionTime;

	@Schema(description = "计时器是否启动")
	private Integer timerStarted;

	@Schema(description = "分支路径，JSON格式")
	private String branchPath;


}